<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .wrap {
            width: 1100px;
            height: 600px;
            margin: 50px auto;
            border: 1px solid #333;
            position: relative;
        }

        .ball {
            width: 100px;
            height: 100px;
            background-color: aquamarine;
            border-radius: 50%;
            position: absolute;
            left: 0;
            top: 0;

            /* transition: all 0.5s; */


            /*  transition-property: all;
            transition-duration: 0.5s;
            transition-delay: 0.5;
            transition-timing-function: linear;
            transition-timing-function: ease-in;
            transition-timing-function: ease-out;
            transition-timing-function: ease-in-out; */

            /* 复合属性 */

            /* 一起过渡 */
            /* transition: all 0.5s 0s linear; */
            /* transition: left 0.5s 0s linear, top 0.5s 0.5s linear; */
        }

        .wrap:hover .ball {
            left: 1000px;
            top: 500px;
        }
    </style>
</head>

<body>
    <!-- 
        transition和animation的区别
        (1) transition 需要一些触发手段(鼠标移入,鼠标按下)
        (2) transition只能实现一些简单的过渡效果



     -->

    <div class="wrap">
        <div class="ball"></div>
    </div>
</body>
<script>


</script>

</html>